package com.data.monitoring.service.impl;

import com.data.monitoring.model.entity.MonitoredFolders;
import com.data.monitoring.mapper.MonitoredFoldersMapper;
import com.data.monitoring.service.MonitoredFoldersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
 * <p>
 * 监控文件夹配置 服务实现类
 * </p>
 *
 * @author HanYiMing
 * @since 2025-05-28
 */
@Service
public class MonitoredFoldersServiceImp extends ServiceImpl<MonitoredFoldersMapper, MonitoredFolders> implements MonitoredFoldersService {

    @Resource
    private MonitoredFoldersMapper monitoredFoldersMapper;

    @Override
    public List<MonitoredFolders> findByIsActiveTrue() {
        return  monitoredFoldersMapper.findByIsActiveTrue();
    }
}
